package com.nbsaas.boot.shop.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nbsaas.boot.jpa.data.entity.SortEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.*;
import java.util.Date;


@Data
@Entity
@Table(name = "shop_attr")
@TableName("shop")
public class ShopAttr  {

	@TableId(value = "id", type = IdType.AUTO)
	@Id()
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Comment("主键id")
	private Long id;


	@Column(length=100)
	private String url;
	

	private String keyName;

	private String keyValue;

	private String keyType;

	private Long shop;

	@Comment("添加时间")
	private Date addDate;

	/**
	 * 最新修改时间
	 */
	@Comment("最新修改时间")
	private Date lastDate;

}
